<template>
  <div>
    <section class="jumbotron">
      <h3 class="jumbotron-heading">Search Github Users</h3>
      <div>
        <input
          type="text"
          placeholder="enter the name you search"
          v-model="keyword"
        />&nbsp;<button @click="searchUsers">Search</button>
      </div>
    </section>
  </div>
</template>

<script>
import axios from "axios";


export default {
  name: "OneSearcher",
  created(){
    this.searchUsers();
  },
  data() {
    return {
      keyword: "",
    };
  },
  methods: {
    async searchUsers() {
      console.log("keyword的值为dd" + this.keyword);      
      let res = await this.$api.faceList({});
      this.$bus.$emit("faceList",res.data.data)

      console.log(res)
   }

  },
};
</script>

<style>
</style>